package com.hontech.desktoppastacooker.utils

import android.graphics.Rect
import android.view.View


fun View.getLocationInWindowRect(): Rect {
    val location = intArrayOf(0, 0)
    this.getLocationInWindow(location)
    return Rect(
        location[0],
        location[1],
        left + width,
        right + height
    )
}


